﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace AlimamaPublish
{
    [ServiceContract(Name = "RestService")]
    public interface IRestService
    {
        [OperationContract]
        [WebInvoke(UriTemplate="GetUrl", Method="POST", ResponseFormat = WebMessageFormat.Json)]
        string GetUrl(string url);

        [OperationContract]
        [WebGet(ResponseFormat = WebMessageFormat.Json)]
        string GetName();        
    }
}
